package com.flida.echart.core.order.service;

import com.flida.echart.core.api.order.entity.Order;

/**
 * Created by yzc on 2016/12/11.
 */
public interface IOrderService {
    int deleteByPrimaryKey(String id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    /**
     * 通过模板来添加Order
     *
     * @param userid orderTemplate userid
     * @return
     */
    int insertFromTemplateByUserid(String userid);
    public void insertOrderToRedisByUserid(String userid);
    /**
     * 通过定时任务自动添加任务
     * @return
     */
    public  void  autoAddOrderH();
    public  void  autoAddOrderM();
    public  void  autoAddOrderL();
}